<?php

$this->breadcrumbs=array(
	'News'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List News', 'url'=>array('index')),
	array('label'=>'Create News', 'url'=>array('create')),
	array('label'=>'Update News', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete News', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage News', 'url'=>array('admin')),
);

?>

<h1>View News #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'url',
		'title',
		'category',
		'time',
	),
)); ?>
<h1>评论</h1>
<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'../comments/_view', 
        
)); ?>
<?php 
//foreach ($model[0] as $vo){
//    echo "<br/>";
//   $this->widget('zii.widgets.CDetailView', array(
//	'data'=>$vo,
//	'attributes'=>array(
//		'id',
//		'comment',
//		'rank',
//		'floor_num',
//		'url_id',
//	),
//));
//}
?>
<h1>Create Comments</h1>

<?php echo $this->renderPartial('../comments/_form', array('model'=>$model2)); ?>